#include <iostream>
#include<stdio.h>
using namespace std;

void test_copy()
{
	string s1("hello world;");
	string s2 = s1;
	printf("%p\n",s1.c_str());
	printf("%p\n",s2.c_str());

	s2.push_back('!');
	cout<<"s2 after push_back('!')"<<endl;
        printf("%p\n",s1.c_str());
        printf("%p\n",s2.c_str());
}

int main()
{
	test_copy();
	return 0;
}

